package edu.sdjzu.exam.dto.examSession;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class SaveDraftDTO {
    @NotNull(message = "考试会话ID不能为空")
    private Long sessionId;
    @NotNull(message = "试题ID不能为空")
    private Long questionId;
    private String answerContent;
    private String filePath;
    @NotNull(message = "答题时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime answerTime;
}
